import  socket

s = socket.socket()
host=socket.gethostname()
port=12345;
s.bind((host,port))
s.listen(5);
while True:
    c,addr=s.accept();
    print("some one coming ")
    c.send('欢迎访问菜鸟教程！'.encode(encoding='utf-8'))
    c.close();

